import network from '@/common/network.js'
//群团列表
export const gpGpinfoList =param => network({
  url:"/gp-boot/gp/api/gpGpinfo/list",
  param,
})


//个人建群列表
export const gpListHasGpinfoUrl =param => network({
  url:"/gp-boot/gp/api/gpGpinfo/listHasGpinfoUrl",
  param,
})
//群团详情
export const gpGpinfo = id => network({
  url:`/gp-boot/gp/api/gpGpinfo/get/${id}`,

})
//获取我有话说的列表
export const gpUseradviselist = data=> {
  return network({
    url: '/gp-boot/gp/api/gpUseradvise/list',
    data,
    auth: true,
  })
}



//群团用户建议-撤销
export const gpUseradviseCancel = id=> {
  return network({
    url: `/gp-boot/gp/api/gpUseradvise/cancel/${id}`,
    method: 'post',
    auth: true,
  })
}
//群团免登
export const getGroupUrl = (id) => network({
  url:`/gp-boot/gp/login/getFrontUrl/f${id}`,
  auth: true,
})
//群团用户建议-提交
export const gpUseradvise = param => network({
  url:'/gp-boot/gp/api/gpUseradvise/submit',
  param,
  auth: true,
})
//群团申请记录
export const gpUserGpapplyList = param => network({
  url:'/gp-boot/gp/api/gpUserGpapply/list',
  param,
  auth: true,
})

//群团信息-列表查询
export const gpGpinfoListAll = param => network({
  url:'/gp-boot/gp/api/gpGpinfo/listAll',
  param,
  auth: true,
})

//用户管理-关注群团编号
export const editGpinfoCodeTags = data=> network({
  url:'/gp-boot/gp/api/gpUser/editGpinfoCodeTags',
  data,
  method: 'put',
  auth: true,
})


//用户管理-关注区县
export const editAreaCodeTags = data=> network({
  url:'/gp-boot/gp/api/gpUser/editAreaCodeTags',
  data,
  method: 'put',
  auth: true,
})



//用户管理-获取关注区县
export const getAreaCodeTags = param=> network({
  url:'/gp-boot/gp/api/gpUser/getAreaCodeTags',
  param,
  auth: true,
})


//用户管理-获取关注群团编号
export const getGpinfoCodeTags = param=> network({
  url:'/gp-boot/gp/api/gpUser/getGpinfoCodeTags',
  param,
  auth: true,
})
